
        :root {
            --light-blue: #e6f2ff;
            --blue: #409EFF;
            --blue-dark: #337ecc;
            --orange: #FF7D00;
            --red: #F56C6C;
            --green: #52C41A;
            --purple: #722ED1;
            --gray: #303133;
            --gray-bg: #f0f2f5;
            --white: #FFFFFF;
            --border-radius: 8px;
            --box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: var(--light-blue);
            display: flex;
            min-height: 100vh;
            position: relative;
            overflow: hidden;
        }

        /* 登录遮罩罩层 */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .login-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .modal {
            background-color: var(--white);
            border-radius: var(--border-radius);
            width: 100%;
            max-width: 400px;
            padding: 30px;
            box-shadow: var(--box-shadow);
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-title {
            font-size: 22px;
            color: var(--gray);
            margin-bottom: 20px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--gray);
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--blue);
        }

        .form-btn {
            padding: 10px 20px;
            background-color: var(--blue);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .form-btn:hover {
            background-color: var(--blue-dark);
        }

        .form-error {
            color: var(--red);
            font-size: 14px;
            margin-top: 5px;
            height: 18px;
        }

        .form-links {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }

        .form-link {
            color: var(--blue);
            font-size: 14px;
            text-decoration: none;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .secondary-btn {
            background-color: #f0f2f5;
            color: var(--gray);
        }

        .secondary-btn:hover {
            background-color: #e0e6ed;
        }

        /* 用户菜单 */
        .user-menu {
            position: absolute;
            top: 85px;
            right: 20px;
            background-color: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            width: 200px;
            padding: 10px 0;
            z-index: 100;
            display: none;
        }

        .user-menu.show {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        .user-info {
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
        }

        .user-name {
            font-weight: 600;
            color: var(--gray);
        }

        .menu-item {
            padding: 10px 15px;
            color: var(--gray);
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-item:hover {
            background-color: var(--light-blue);
            color: var(--blue);
        }

        .menu-divider {
            height: 1px;
            background-color: #eee;
            margin: 5px 0;
        }

        /* 顶部栏样式 */
        .top-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 80px;
            background-color: var(--light-blue);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            z-index: 10;
        }

        .logo {
            margin-left: 35px;
            font-size: 36px;
            color: var(--blue);
            font-weight: bold;
        }

        .user-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--blue);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: transform 0.2s;
        }

        .user-btn:hover {
            transform: scale(1.05);
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 240px;
            background-color: var(--white);
            padding: 100px 20px 20px;
            display: flex;         
            flex-direction: column;
            gap: 30px;
            box-shadow: var(--box-shadow);
            z-index: 5;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            color: var(--gray);
            cursor: pointer;
            padding: 12px;
            border-radius: var(--border-radius);
            transition: all 0.2s;
        }

        .sidebar-item:hover, .sidebar-item.active {
            background-color: var(--light-blue);
            color: var(--blue);
        }

        /* 主内容区样式 */
        .main {
            margin-top: -20px;
            flex: 1;
            padding: 100px 20px 20px;
            overflow-y: auto;
            max-height: 100vh;
        }

        /* 日记记录页面特殊样式 */
        .diary-page .card {
            max-height: calc(100vh - 140px);
            overflow-y: auto;
            padding-right: 10px;
        }

        /* 自定义滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--light-blue);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: #b3d1ff;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--blue);
        }

        .page-content {
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }

        .page-content.active {
            display: block;
        }

        .card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--box-shadow);
            margin-bottom: 20px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 今日心情记录样式 */
        .mood-record {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .record-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 16px;
            border-bottom: 1px solid #eee;
        }

        .current-date {
            color: var(--gray);
            font-size: 16px;
        }

        .weather-info {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--gray);
            font-size: 14px;
        }

        .weather-icon {
            font-size: 20px;
        }

        .mood-input-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .input-area {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .mood-input {
            flex: 1;
            padding: 16px;
            border-radius: var(--border-radius);
            font-size: 16px;
            background-color: var(--light-blue);
            border: none;
            min-height: 120px;
            resize: vertical;
        }

        .voice-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--blue);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: all 0.2s;
            position: relative;
            z-index: 1;
        }

        .voice-btn:hover {
            background-color: var(--blue-dark);
            transform: scale(1.05);
        }

        .voice-btn.recording {
            background-color: var(--red);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 108, 108, 0.7); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245, 108, 108, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 108, 108, 0); }
        }

        /* 语音动画效果 */
        .voice-animation {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .voice-animation.show {
            opacity: 1;
            pointer-events: auto;
        }

        .voice-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            position: relative;
        }

        .voice-icon {
            font-size: 40px;
            color: var(--red);
        }

        .voice-waves {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }

        .voice-wave {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            border: 3px solid var(--red);
            opacity: 0;
        }

        .voice-animation.show .voice-wave:nth-child(1) {
            width: 120%;
            height: 120%;
            animation: wave 2s infinite ease-out;
        }

        .voice-animation.show .voice-wave:nth-child(2) {
            width: 140%;
            height: 140%;
            animation: wave 2s 0.3s infinite ease-out;
        }

        .voice-animation.show .voice-wave:nth-child(3) {
            width: 160%;
            height: 160%;
            animation: wave 2s 0.6s infinite ease-out;
        }

        @keyframes wave {
            0% {
                transform: translate(-50%, -50%) scale(0.8);
                opacity: 0.8;
            }
            100% {
                transform: translate(-50%, -50%) scale(1.5);
                opacity: 0;
            }
        }

        .voice-text {
            color: var(--gray);
            font-size: 18px;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 8px 16px;
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .voice-cancel {
            margin-top: 10px;
            color: var(--blue);
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            text-decoration: underline;
        }

        /* 情绪选择区域样式 */
        .mood-detail-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .section-title {
            font-size: 18px;
            color: var(--gray);
            font-weight: 600;
        }

        /* 用户可选择的情绪区域 */
        .emotion-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }

        /* AI识别的情绪区域 */
        .ai-emotion-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }

        /* 情绪项基础样式 */
        .emotion-item, .ai-emotion-item {
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .emotion-item {
            cursor: pointer;
        }

        .ai-emotion-item {
            cursor: default;
        }

        .emotion-item:hover, .ai-emotion-item:hover {
            transform: translateY(-2px);
        }

        .emotion-item.selected, .ai-emotion-item.selected {
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        /* 情绪颜色样式 */
        .emotion-calm, .ai-emotion-calm {
            color: var(--blue);
            background-color: rgba(64, 158, 255, 0.2);
            border-color: var(--blue);
        }

        .emotion-happy, .ai-emotion-happy {
            color: var(--green);
            background-color: rgba(82, 196, 26, 0.2);
            border-color: var(--green);
        }

        .emotion-anxious, .ai-emotion-anxious {
            color: var(--orange);
            background-color: rgba(255, 125, 0, 0.2);
            border-color: var(--orange);
        }

        .emotion-sad, .ai-emotion-sad {
            color: var(--purple);
            background-color: rgba(114, 46, 209, 0.2);
            border-color: var(--purple);
        }

        .emotion-angry, .ai-emotion-angry {
            color: var(--red);
            background-color: rgba(245, 108, 108, 0.2);
            border-color: var(--red);
        }

        .activities-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .activity-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .activity-tag {
            padding: 8px 16px;
            background-color: var(--gray-bg);
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .activity-tag.selected {
            background-color: var(--blue);
            color: white;
        }

        .notes-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .notes-input {
            width: 100%;
            padding: 14px;
            border: 1px solid #eee;
            border-radius: var(--border-radius);
            font-size: 15px;
            min-height: 100px;
            resize: vertical;
        }

        .save-section {
            display: flex;
            justify-content: flex-end;
            padding-top: 16px;
            border-top: 1px solid #eee;
        }

        .save-btn {
            padding: 12px 24px;
            background-color: var(--blue);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .save-btn:hover {
            background-color: var(--blue-dark);
        }

        /* 日记记录页面样式 */
        .diary-filters {
            margin-top: 20px;
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
            position: sticky;
            top: 0;
            background-color: var(--white);
            padding-top: 10px;
            z-index: 2;
        }

        .filter-btn {
            padding: 8px 16px;
            background-color: var(--white);
            border: 1px solid var(--blue);
            color: var(--blue);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn.active {
            background-color: var(--blue);
            color: var(--white);
        }

        .diary-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .diary-item {
            padding: 15px;
            border-left: 4px solid var(--blue);
            background-color: var(--white);
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: all 0.5s ease;
            opacity: 1;
            transform: translateY(0);
        }

        .diary-item:hover {
            transform: translateY(-2px);
        }

        .diary-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .diary-date {
            color: var(--gray);
            font-size: 14px;
        }

        .diary-weather {
            font-size: 14px;
            color: var(--gray);
        }

        .diary-content {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .diary-activities {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 8px 0;
        }

        .activity-badge {
            padding: 3px 10px;
            font-size: 12px;
            border-radius: 12px;
            background-color: rgba(64, 158, 255, 0.1);
            color: var(--blue);
        }

        .diary-notes {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #eee;
            font-size: 14px;
            color: #666;
        }

        .diary-emotion {
            display: inline-block;
            padding: 3px 10px;
            font-size: 12px;
            border-radius: 12px;
        }

        .add-diary-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--blue);
            color: white;
            border: none;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
            transition: transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .add-diary-btn:hover {
            transform: scale(1.1);
        }

        /* 提示框样式 */
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 10px 20px;
            border-radius: var(--border-radius);
            color: white;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .toast.show {
            opacity: 1;
        }

        .toast.success {
            background-color: var(--green);
        }

        .toast.error {
            background-color: var(--red);
        }

        /* 空状态样式 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .empty-state.show {
            display: block;
        }

        .empty-icon {
            font-size: 60px;
            margin-bottom: 20px;
            color: var(--blue);
            opacity: 0.6;
        }

        .empty-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: var(--gray);
        }

        .empty-message {
            margin-bottom: 30px;
            line-height: 1.6;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .empty-action {
            padding: 10px 20px;
            background-color: var(--blue);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.2s;
        }

        .empty-action:hover {
            background-color: var(--blue-dark);
        }

        /* 筛选动画效果 */
        .filter-transition {
            transition: all 0.3s ease;
        }
        
        .empty-state {
            transition: opacity 0.5s ease, transform 0.5s ease;
            opacity: 1;
            transform: translateY(0);
        }
        
        .empty-state.hidden {
            opacity: 0;
            transform: translateY(20px);
            height: 0;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }

        /* 正念练习页面样式 */
        .mindfulness-session-page .record-header {
            margin-bottom: 20px;
        }
        
        .mindfulness-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 30px 0;
        }
        
        .breath-circle {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            background-color: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 30px 0;
            position: relative;
            transition: all 4s ease-in-out;
        }
        
        .breath-inner-circle {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background-color: var(--blue);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            transition: all 4s ease-in-out;
        }
        
        .session-instructions {
            text-align: center;
            max-width: 600px;
            margin: 20px 0;
            line-height: 1.6;
        }
        
        .session-controls {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .session-settings {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .setting-group {
            flex: 1;
            min-width: 150px;
        }
        
        .session-reflection {
            margin: 20px 0;
        }
        
        /* 音量控制样式 */
        .volume-control {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }
        
        .volume-slider {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: #ddd;
            border-radius: 3px;
            outline: none;
        }
        
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--blue);
            cursor: pointer;
        }
        
        .volume-icon {
            color: var(--gray);
            cursor: pointer;
        }

        /* 音频加载状态提示 */
        .audio-loading {
            color: #666;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }
        
        .audio-loading.show {
            display: block;
        }